<template>
	<view class="page">
		<view class="job-float-navigation-body" v-show="floatNavigation">
			<view class="job-float-navigation-title">
				<view class="job-float-navigation-text">全局导航</view>
				<view class="job-float-navigation-close" @click="closeFloatNavigation()"><u-icon name="close"></u-icon></view>
			</view>
			<view class="job-float-navigation-content">
				<view class="job-float-navigation-item">
					<image src="../../static/job/tabbar01.png" mode="aspectFit" class="job-float-navigation-item-image"></image>
					<text class="job-float-navigation-item-text">首页</text>
				</view>
				<view class="job-float-navigation-item">
					<image src="../../static/job/tabbar02.png" mode="aspectFit" class="job-float-navigation-item-image"></image>
					<text class="job-float-navigation-item-text">招聘</text>
				</view>
				<view class="job-float-navigation-item">
					<image src="../../static/job/tabbar04.png" mode="aspectFit" class="job-float-navigation-item-image"></image>
					<text class="job-float-navigation-item-text">人才库</text>
				</view>
				<view class="job-float-navigation-item">
					<image src="../../static/job/tabbar05.png" mode="aspectFit" class="job-float-navigation-item-image"></image>
					<text class="job-float-navigation-item-text">我的</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"JobFloatNavigation",
		data() {
			return {
				floatNavigation:false,
			};
		},
		props: {
			jobFloatNavigationIsShow: {
				type: Boolean,
				default() {
					return false;
				}
			}
		},
		methods: {
			closeFloatNavigation(){
				this.$parent.showFloatNavigation()
			},
		},
		watch: {
			jobFloatNavigationIsShow: function(newVal, oldVal) {
				this.floatNavigation = newVal;
				// console.log(this.floatNavigation)
			}
		}
	}
</script>

<style lang="scss" scoped>
/* 浮动导航开始 */
.job-float-navigation-body {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #fff;
	border-bottom-right-radius: 30rpx;
	border-bottom-left-radius: 30rpx;
	box-shadow: 0px 1px 6.72px 0.28px rgba(119, 119, 119, 0.25);
	z-index: 14;
}
.job-float-navigation-title {
	padding-top: 30rpx;
	padding-left: 14rpx;
	padding-right: 14rpx;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}
.job-float-navigation-text {
	font-size: 28rpx;
	color: #333;
	line-height: 40rpx;
	padding: 10rpx;
}
.job-float-navigation-content{
	margin: 0 20rpx;
    padding: 0 4rpx;
    padding-top: 15rpx;
    padding-bottom: 30rpx;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}
.job-float-navigation-item {
	width: 21%;
	border-radius: 30rpx;
	background-color: #f0f0f0;
	padding: 30rpx 0;
	display: flex;
	flex-direction: column;
}
.job-float-navigation-item-image {
	width: 51rpx;
	height: 51rpx;
	margin: 0 auto;	
}
.job-float-navigation-item-text {
	text-align: center;
	font-size: 26rpx;
	color: #666666;
	line-height: 30rpx;
	margin-top: 15rpx;	
}
/* 浮动导航结束 */
</style>
